﻿<Window x:Class="GUI.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:p="clr-namespace:GUI.Properties"
    xmlns:bll="clr-namespace:BLL;assembly=BLL"
    Title="DvdId Retriever" Height="600" Width="835" WindowStartupLocation="CenterScreen" ResizeMode="CanMinimize">
    <Window.Resources>
        <bll:MovieCollection x:Key="Movies" />
    </Window.Resources>
    <Grid Width="810">
        <Label Height="24" Margin="12,2,0,0" Name="lblMovieFolder" VerticalAlignment="Top" HorizontalAlignment="Left" Width="120" FontWeight="Normal" FontSize="12" VerticalContentAlignment="Center">Movie Folder</Label>
        <TextBox Name="txtMovieFolder" Height="23" Margin="12,28,0,0" VerticalAlignment="Top" HorizontalAlignment="Left" Width="150" Text="{Binding Source={x:Static p:Settings.Default}, Path=MovieDirectory, Mode=TwoWay}" />
        <Button Height="23" Margin="168,28,0,0" HorizontalAlignment="Left" Name="btnBrowse" VerticalAlignment="Top" Width="23" Click="btnBrowse_Click" ToolTip="Launch a folder browser window to select your movie directory.">...</Button>
        <ListView Margin="12,55,0,12" Name="lvwMovies" HorizontalAlignment="Left" Width="180" ItemsSource="{StaticResource Movies}" SelectionChanged="lvwMovies_SelectionChanged" MouseDoubleClick="lvwMovies_MouseDoubleClick">
            <ListView.View>
                <GridView>
                    <GridViewColumn Header="Movie" Width="180" DisplayMemberBinding="{Binding Name}"/>
                </GridView>
            </ListView.View>
        </ListView>
        <Label Height="24" HorizontalAlignment="Left" Margin="222,25,0,0" Name="lblSearchCriteria" VerticalAlignment="Top" Width="89">Search Criteria</Label>
        <TextBox Height="23" Margin="317,28,323,0" Name="txtSearchCriteria" VerticalAlignment="Top" />
        <Button Height="23" HorizontalAlignment="Right" Margin="0,28,242,0" Name="btnSearch" VerticalAlignment="Top" Width="75" ToolTip="Search DVDXml for the selected movie." Click="btnSearch_Click">Search</Button>
        <Label Height="26" HorizontalAlignment="Right" Margin="0,28,32,0" Name="lblStatus" VerticalAlignment="Top" Width="120" Visibility="Hidden" Foreground="Red" HorizontalContentAlignment="Right">&lt;Status&gt;</Label>
        <WebBrowser Margin="222,55,32,107" Name="WebBrowser" LoadCompleted="WebBrowser_LoadCompleted" />
        <Label Height="28" HorizontalAlignment="Left" Margin="222,0,0,73" Name="lblMovieTitle" VerticalAlignment="Bottom" Width="89">Movie Title</Label>
        <TextBox Height="23" Margin="317,0,248,76" Name="txtMovieTitle" VerticalAlignment="Bottom" />
        <Label Height="28" HorizontalAlignment="Left" Margin="222,0,0,42" Name="lblCurrentDvdId" VerticalAlignment="Bottom" Width="89">Current DvdId</Label>
        <Label Height="28" Margin="317,0,343,42" Name="lblCurrentDvdIdValue" VerticalAlignment="Bottom" />
        <Label Height="28" Margin="0,0,248,42" Name="lblWebDvdId" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="89">Web DvdId</Label>
        <Label Height="28" Margin="0,0,92,42" Name="lblWebDvdIdValue" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="150"></Label>
        <Button Height="23" HorizontalAlignment="Right" Margin="0,0,113,13" Name="btnDeleteDvdId" VerticalAlignment="Bottom" Width="75" Click="btnDeleteDvdId_Click" ToolTip="Delete the current DvdId file">Delete</Button>
        <Button Height="23" HorizontalAlignment="Right" Margin="0,0,32,13" Name="btnWriteDvdId" VerticalAlignment="Bottom" Width="75" Click="btnWriteDvdId_Click" ToolTip="Write a new DvdId file">Write</Button>
        <Button Height="23" HorizontalAlignment="Left" Margin="222,0,0,13" Name="btnEdit" VerticalAlignment="Bottom" Width="75" ToolTip="Edit the DvdInfoCache file" Click="btnEdit_Click">Edit</Button>
    </Grid>
</Window>
